package com.tbvtc.agriculturalcreditchainserver2025.vo.admin;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "角色信息")
public class UserInfoVo {
    @Schema(description = "id")
    private String id;

    @Schema(description = "农户角色id")
    private String roleId;
    @Schema(description = "农户姓名")
    private String username;
    @Schema(description = "农户电话")
    private String phone;

    @Schema(description = "审核", defaultValue = "0")
    private Integer isAudit;
    @Schema(description = "头像")
    private String userImage;
    @Schema(description = "是否禁用",defaultValue = "0")
    private Integer isDisable;
    @Schema(description = "注册时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @Schema(description = "修改时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;


}
